package com.atguigu.tingshu.order.client;

import com.atguigu.tingshu.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * <p>
 * 产品列表API接口
 * </p>
 * @author qy
 */
@FeignClient(value = "service-order" ,path = "/client/order/orderInfo",contextId = "orderInfoFeignClient")
public interface OrderInfoFeignClient {

    /**
     * 查询用户下单但未付款的声音id列表
     * @param userId
     * @return
     */
    @GetMapping("/getUserTrackOrderInfo/{userId}")
    public Map<String,Object> getUserTrackOrderInfo(@PathVariable("userId")Long userId);


    /**
     * 根据orderNo获取订单详情
     * @param orderNo
     * @return
     */
    @GetMapping("/getOrderInfo/{orderNo}")
    public OrderInfo getOrderInfo(@PathVariable("orderNo") String orderNo);
}